package com.example.yiqiuser.controller;


import com.example.yiqiuser.entity.TBsnPay;
import com.example.yiqiuser.service.TBsnPayService;
import com.example.yiqiuser.util.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ fileName:TBsnPayController
 * @ description:
 * @ author:xjd
 * @ createTime:2023/4/8 23:52
 * @ version:1.0.0
 */
@RestController
@RequestMapping("pay")
public class TBsnPayController extends BaseController {
    @Resource
    private TBsnPayService tBsnPayService;

    /**
     * 添加
     * @param tBsnPay 前台传递的参数
     * @return
     */
    @PostMapping
    public Result add(@RequestBody TBsnPay tBsnPay) {
        System.out.println(tBsnPay+"-----------------");
        return success(tBsnPayService.add(tBsnPay));
    }

}
